package org.ioc.com.captchademo3.controller;

import org.ioc.com.captchademo3.model.BedroomLight;
import org.ioc.com.captchademo3.model.HallLight;

public class LightCOntroller {
    BedroomLight bedroomLight=new BedroomLight();
    HallLight hallLight=new HallLight();
    public void openLight(){
        bedroomLight.LightOn();
        hallLight.LightOn();
    }
    public void offLight(){
        bedroomLight.Lightoff();
        hallLight.Lightoff();
    }
}
